var sWeek = new Array ("日","一","二","三","四","五","六");
var myDate = new Date();  // 当天的日期
var sYear = myDate.getFullYear();	//年
var sMonth = myDate.getMonth()+1;	//月
var sDate = myDate.getDate();	//日
var sDay = sWeek[myDate.getDay()];	//星期
document.write(sYear+"年"+sMonth+"月"+sDate+"日"+"&nbsp;&nbsp;星期"+sDay);